package com.touni.designpattern.singletonpattern;

import com.touni.designpattern.singletonpattern.enumtype.Singleton;
import com.touni.designpattern.singletonpattern.enumtype.SingletonEnum;

/**
 * @ClassName : SingletonDemo
 * @Description : 单例模式   属于创建者模式
 * @Author : lwq
 * @Date: 2020-10-19 15:13
 */
public class SingletonDemo {

    public static void main(String[] args) {
        Singleton singleton = SingletonEnum.INSTANCE.getSingleton();
        singleton.hello();
    }
}
